home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 June
/
EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso
/
earcd
/
editor
/
gdphrc14.lha
/
ged-phrasecomp
/
misc
/
gcc.mk
< prev
next >
Wrap
Text File
|
1995-12-02
|
1KB
|
76 lines
#
# $PROJECT: Include Makefiles
#
# $VER: gcc.mk 0.1 (21.07.95)
#
# by
#
# Stefan Ruppert , Windthorststrasse 5 , 65439 Floersheim , GERMANY
#
# (C) Copyright 1995
# All Rights Reserved !
#
# $HISTORY:
#
# 21.07.95 : 000.001 : initial
#
##############################################################################
#
# GNUMake GCC-C pattern rules
#
# These rules compiles every c and c++ source and puts the output to
# the OBJDIR directory
#
$(OBJDIR)/%.o: %.cc
gcc $(GCCOPTS) $(GCCDEBUG) $(GCCOPTIMIZE) $< -c -o $@
$(ARCHIVER)
$(OBJDIR)/%.o: %.c
gcc $(GCCOPTS) $(GCCDEBUG) $(GCCOPTIMIZE) $< -c -o $@
$(ARCHIVER)
##############################################################################
#
# make prototypes
#
protos: $(PROTOS)
$(PROTOS): $(SRCS)
c:swtools/mkproto $(SRCS) TO $(PROTOS)
##############################################################################
#
# check in all files
#
checkin:
ci -I -nV$(VERSION)_$(REVISION) -r -t-initial $(subst RCS,,$(wildcard *))
##############################################################################
#
# check out all files
#
checkout:
$(CO) -l $(subst RCS/,,$(wildcard RCS/*))
##############################################################################
#
# make the object directory
#
$(OBJDIR):
mkdir $(OBJDIR)
##############################################################################
#
# make dependency include makefile
#
makedep:
gcc -MM $(SRCS) $(GCCOPTS) >$(MAKEDEP)